-
Notifications
You must be signed in to change notification settings - Fork 297
[CI Bot] environment lockfiles auto-update #6597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
⏱️ Performance Benchmark Report: 4068d5dPerformance shifts
Full benchmark results
Generated by GHA run |
⏱️ Performance Benchmark Report: 4068d5dPerformance shifts
Full benchmark results
Generated by GHA run |
⏱️ Performance Benchmark Report: 4068d5dPerformance shifts
Full benchmark results
Generated by GHA run |
b742c2c
to
afdf410
Compare
⏱️ Performance Benchmark Report: e98d344Performance shifts
Full benchmark results
Generated by GHA run |
afdf410
to
befcac5
Compare
⏱️ Performance Benchmark Report: fcfcc10Performance shifts
Full benchmark results
Generated by GHA run |
c0690ca
to
57ebd0e
Compare
⏱️ Performance Benchmark Report: e583ffePerformance shifts
Full benchmark results
Generated by GHA run |
⏱️ Performance Benchmark Report: a120396Performance shifts
Full benchmark results
Generated by GHA run |
57ebd0e
to
182dbdc
Compare
⏱️ Performance Benchmark Report: ff87d44Performance shifts
Full benchmark results
Generated by GHA run |
Those barb tests start by defining a magnitude as "scale" iris/lib/iris/tests/integration/plot/test_vector_plots.py Lines 104 to 106 in 345eea3
then u, v further get multiplied by 30 iris/lib/iris/tests/integration/plot/test_vector_plots.py Lines 195 to 197 in 345eea3
So our input magnitudes are basically
After all the various transformations, Matplotlib by default rounds magnitudes to the nearest 5 (see the rounding and barb_increments keywords in the docs). So it seems to me that our input magnitudes are ideally chosen to be sensitive to floating point errors. |
I have not checked, but the change might plausibly have been caused by something as simple as SciTools/cartopy#2509 |
@rcomer This is indeed the smoking gun and I've been able to verify that. Awesome spot 🤩 As you said, the magnitudes that we're pumping into the test are just on the edge of where (Pdb) uu = u.flatten()
(Pdb) vv = v.flatten()
(Pdb) vm = (uu**2 + vv**2)**0.5
(Pdb) vmh = np.hypot(uu, vv)
(Pdb) vm
array([30. , 37.5, 45. , 52.5, 60. , 30. , 37.5, 45. , 52.5, 60. , 30. ,
37.5, 45. , 52.5, 60. , 30. , 37.5, 45. , 52.5, 60. , 30. , 37.5,
45. , 52.5, 60. , 30. , 37.5, 45. , 52.5, 60. ])
(Pdb) vmh
array([30. , 37.5, 45. , 52.5, 60. , 30. , 37.5, 45. , 52.5, 60. , 30. ,
37.5, 45. , 52.5, 60. , 30. , 37.5, 45. , 52.5, 60. , 30. , 37.5,
45. , 52.5, 60. , 30. , 37.5, 45. , 52.5, 60. ])
(Pdb) vmd = vm - vmh
(Pdb) vm == vmh
array([ True, True, True, True, True, True, False, False, False,
True, True, True, True, False, True, True, True, True,
True, True, True, True, True, True, True, True, False,
True, True, True])
(Pdb) vmd
array([ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 7.10542736e-15, -7.10542736e-15,
-7.10542736e-15, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 7.10542736e-15, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, -7.10542736e-15, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00]) The The fix is to marginally up-scale the data enough to firmly place the magnitudes comfortably within the expected |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6597 +/- ##
==========================================
- Coverage 90.33% 90.29% -0.05%
==========================================
Files 91 91
Lines 24465 24465
Branches 4568 4568
==========================================
- Hits 22100 22090 -10
- Misses 1597 1607 +10
Partials 768 768 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
* fix barb magnitude binning flip/flop * review actions * review action: add future comment
90c5318
to
c20e8b7
Compare
⏱️ Performance Benchmark Report: d444b40Performance shifts
Full benchmark results
Generated by GHA run |
⏱️ Performance Benchmark Report: bc53ce2Performance shifts
Full benchmark results
Generated by GHA run |
Lockfiles updated to the latest resolvable environment.
If the CI tasks fail, create a new branch based on this PR and add the required fixes to that branch.